package com.coolingme.demo.service.impl;

import com.coolingme.demo.service.DemoService;
import com.coolingme.demo.service.HelloService;
import com.coolingme.springframework.annotation.MeAutowired;
import com.coolingme.springframework.annotation.MeService;

/**
 * 业务层实现类
 *
 * @author wangyue
 * @date 2020/10/23 15:12
 */
@MeService
public class DemoServiceImpl implements DemoService {

    @MeAutowired
    private HelloService helloService;

    @Override
    public String hello(String name) {
        return "Hello," + name + this.helloService.bye();
    }

    @Override
    public Integer add(String a, String b) {
        return Integer.valueOf(a) + Integer.valueOf(b);
    }
}
